package day04;

import java.util.Scanner;

public class ScoreLevel {
    public static void main(String[] args) {
        Scanner scanner=new Scanner(System.in);
        System.out.println("请输入得分");
        /*double score=scanner.nextDouble();
        if (score>100||score<0) {
            System.out.println("成绩不合法");
        }else if (score>=90){
            System.out.println("A-优秀");
        }else if (score>=80){
            System.out.println("B-良好");
        }else if (score>=60){
            System.out.println("C-中等");
        }else {
            System.out.println("D-不及格");
        }

         */

        double score=scanner.nextDouble();
        if (score>100||score<0){
            System.out.println("成绩不合法");
        }else if (score>=90){
            System.out.println("优秀A");
        }else if (score>=80){
            System.out.println("良好B");
        }else if (score>=60){
            System.out.println("及格C");
        }else if (score<60){
            System.out.println("成绩不合格");
        }

        double score1=scanner.nextDouble();
        if (score1>100||score1<0){
            System.out.println("成绩不合法");
        }else if (score1>=90){
            System.out.println("成绩A");
        }else if (score1>=80){
            System.out.println("成绩B");
        }else if (score1>=60){
            System.out.println("成绩合格C");
        }else {
            System.out.println("成绩不及格");
        }

    }
}
